const HandleReducer=(prevState={
    isShow:false,
},action={})=>{
    let newState={...prevState}
    switch(action.type){
        case 'handle-show':
            newState.isShow=true
            return newState;
        case 'handle-hide':
            newState.isShow=false
            return newState;
        default:return prevState
    }
}

export default HandleReducer